home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 361_01 / stdek.h < prev    next >
C/C++ Source or Header  |  1991-07-24  |  3KB  |  88 lines

  1.  
  2.  
  3. /* STDEK.H ---> EK's List of Magic Numbers & Macros */
  4.  
  5. #ifndef STDEK
  6.  
  7. #define STDEK
  8.  
  9. #include <ctype.h>
  10. #define IS      ==
  11. #define EVER    ;;              /* for(EVER) is an Infinite Loop */
  12. #define FALSE   0
  13. #define TRUE    1
  14. #define OK      0               /* For exit(OK) or exit(!OK) */
  15. #define PIPE    "\\STD "
  16. typedef unsigned char   BYTE;
  17.  
  18. /* Define ASCII CTL CHR$ */
  19. #define SOH     1       /* ^A is RAM-Page NL */
  20. #define STX     2       /* ^B is RAM-Page UndLn Marker */
  21. #define ETX     3       /* ^C is RAM-Page Cmd Esc & Unix/DOS INTR */
  22. #define EOT     4       /* ^D is Unix EOF/Kill Shell Marker */
  23. #define ENQ     5       /* ^E is ENQuire */
  24. #define ACK     6       /* ^F is ACKnowledge */
  25. #define BEL     7       /* ^G is Bell or Beep */
  26. #define BELL    7       /* ^G is Bell or Beep */
  27. #define BS      8       /* ^H is BackSpace */
  28. #define RUBOUT  8
  29. #define HT      9       /* ^I is TAB right (normal TAB action) */
  30. #define TAB     9       /* ^I is TAB right (normal TAB action) */
  31. #define LF      10      /* ^J is LineFeed */
  32. #define NL      10      /* Unix New Line */
  33. #define VT      11      /* ^K is TAB Down (rare) */
  34. #define FF      12      /* ^L is FormFeed */
  35. #define CR      13      /* ^M is Carriage Return */
  36. #define SO      14      /* ^N is Shift Out (to Alt CHR Set) */
  37. #define SI      15      /* ^O is Shift In  (to Nml CHR Set) */
  38. #define DLE     16      /* ^P is Data Link Escape (BiSync) */
  39. #define DC1     17      /* ^Q is Device Control One */
  40. #define XON     17      /* Switch ON (Paper Tape Reader) */
  41. #define DC2     18      /* ^R is Device Control 2 */
  42. #define DC3     19      /* ^S is Device Control 3 */
  43. #define XOFF    19      /* Switch OFF (Paper Tape Reader) */
  44. #define DC4     20      /* ^T is Device Control 4 */
  45. #define NAK     21      /* ^U is Negative ACK */
  46. #define SYN     22      /* ^V is Sync BiSync Link Clock */
  47. #define ETB     23      /* ^W is End Text Block (BiSync) */
  48. #define CAN     24      /* ^X is Cancel */
  49. #define EOM     25      /* ^Y is End Of Message */
  50. #define SUB     26
  51. #define DOS_EOF 26      /* ^Z is CP/M and DOS EOF Marker */
  52. #define ESC     27      /* ^[ is ESCape */
  53. #define FS      28      /* ^\ is File Separator & C-Kermit Cmd Escape */
  54. #define GS      29      /* ^] is Group Separator & MS-Kermit Cmd Escape */
  55. #define RS      30      /* ^^ is Record Separator */
  56. #define US      31      /* ^_ is Unit Separator */
  57.  
  58. /* Define ASCII Symbols */
  59. #define SPACE   32
  60. #define BANG    33      /* ! */
  61. #define QUOTE   34
  62. #define SHARP    35
  63. #define DOLLAR  36
  64. #define DIT     39      /* ' */
  65. #define STAR    42      /* '*' */
  66. #define COMMA   44
  67. #define DASH    45
  68. #define DOT     46
  69. #define SLASH   47      /* '/' */
  70. #define COLON   58
  71. #define SEMI    59
  72. #define QUERY   63      /* '?' */
  73. #define BKSL    92      /* '\' */
  74. #define UNDER   95      /* '_' */
  75. #define ACCENT  96
  76. #define LBRACE 123
  77. #define BAR    124
  78. #define RBRACE 125
  79. #define DEL    127
  80. #define BOX    219      /* █ */
  81.  
  82. /* Define Macros */
  83. #define INFLOW_EXISTS           (isatty(0) IS FALSE)
  84. #define OUTFLOW_EXISTS          (isatty(1) IS FALSE)
  85. #define Pause2Read              (ungetch(getch()))
  86.  
  87. #endif
  88.